package com.bt.lms.ui.page.common.action.pageteaching;

import com.bt.lms.ui.page.teaching.plan.PageList;
import com.bt.lms.ui.vo.PageSkipInfo;
import com.bt.lms.ui.page.teaching.plan.PageTeachingPlanBasicInfoList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;

/**
 * 教学计划管理标签事件
 */
public class TeachingPlanLabAction implements EventHandler {


    /**
     * 界面跳转数据
     */
    public static PageSkipInfo pageSkipInfo;

    /**
     * 构造事件
     * @param pageSkipInfo 界面跳转数据
     */
    public TeachingPlanLabAction(PageSkipInfo pageSkipInfo) {
        this.pageSkipInfo = pageSkipInfo;
    }

    @Override
    public void handle(Event event) {

        //PageTeachingPlanBasicInfoList pageTeachingPlanBasicInfo = new PageTeachingPlanBasicInfoList();
        PageList pageList = new PageList();
        Pane pane = pageSkipInfo.getPane();
        Integer index = pageSkipInfo.getIndex();
        pane.getChildren().set(index,pageList);


    }
}
